package pres.wchen.oa.cor.shiro.config;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
import pres.wchen.oa.cor.shiro.interceptor.CommonInterceptor;

/**
 * @作者： wchen
 * @描述：
 * @创建时间： 2018/1/15 19:23
 * @版本：Copyright 2018, Inc. All Rights Reserved.
 * @修改信息：
 */
@Configuration
public class CommonInterceptorConfig extends WebMvcConfigurerAdapter {
    @Override
    public void addInterceptors(InterceptorRegistry registry) {

        registry.addInterceptor(new CommonInterceptor()).addPathPatterns("/**");
    }
}
